@mixin flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

@mixin abs-stretch {
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
}
@mixin round($d) {
    width: $d;
    height: $d;
    border-radius: 50%;
}
@mixin img-wrap($width, $height: $width) {
    width: $width;
    height: $height;
    flex-shrink: 0;

    img {
        width: 100%;
        height: 100%;
    }
}

// 单行文字省略号
@mixin text-ellipsis() {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

// 多行文字省略号
@mixin text-ellipsis-multi($line) {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: $line;
    -webkit-box-orient: vertical;
}

// 圆角
@mixin round($d) {
    width: $d;
    height: $d;
    border-radius: 50%;
}
